<?php
        $baseurl = current(split("index", $_SERVER['PHP_SELF']));
        echo "<p class='banner' align='right' onmousedown='tekan(event);' onmousemove='gerak(event);' onmouseup='lepas();' onmouseout='lepas();'> <a href='Javascript:close_slip()'> <img src='".$baseurl."/img/no4.gif' alt='[ X ]'> </a></p>";
            echo "<form id='edit_advs'>";
            echo "<table>";
                echo "<tr><td>ID  </td><td>: ".$this->data['Adv']['id']."</td></tr>";
                echo "<input type='hidden' name='data[Adv][id]' value='".$this->data['Adv']['id']."'>";
                echo "<tr><td>Gambar  </td><td>: <input type='text' name='data[Adv][image]' value='".$this->data['Adv']['image']."'></td></tr>";
                echo "<tr><td>Link  </td><td>: <input type='text' name='data[Adv][link]' value='".$this->data['Adv']['link']."'></td></tr>";
                echo "<tr><td>ID Perusahaan</td><td>: <input type='text' name='data[Adv][employer_id]' value='".$this->data['Adv']['employer_id']."'></td></tr>";
                echo "<tr><td>Pembayaran  </td><td>: <input type='text' name='data[Adv][slip]' value='".$this->data['Adv']['slip']."'></td></tr>";
                echo "<tr><td>Status  </td><td>: <input type='text' name='data[Adv][status]' value='".$this->data['Adv']['status']."'></td></tr>";
                echo "<tr><td>Tanggal Dibuat  </td><td>: <input type='text' name='data[Adv][created]' value='".$this->data['Adv']['created']."'></td></tr>";
                echo "<tr><td>Tanggal Kadaluarsa  </td><td>: <input type='text' name='data[Adv][end_date]' value='".$this->data['Adv']['end_date']."'></td></tr>";
                echo "<tr><td></td><td>  &nbsp";
                echo $ajax->submit('Save', array('div' => false, 'class' => 'submitbutton', 
                                    'url' => array('controller'=> 'advs','action' => 'edit_admin'), 
                                    'update' => 'result')
                                    );
                echo " <input type='button' onClick='close_slip();' value='Cancel'></td></tr>";
            echo "</table>";
            echo "</form>";
?>